package com.recruitment.auth.feign;

import com.recruitment.common.result.Result;
import com.recruitment.common.result.ResultCode;
import org.springframework.stereotype.Component;

/**
 * 用户服务Feign客户端降级处理
 */
@Component
public class UserFeignClientFallback implements UserFeignClient {
    
    @Override
    public Result getUserById(Long userId) {
        return Result.error(ResultCode.SERVICE_UNAVAILABLE, "用户服务暂时不可用");
    }
    
    @Override
    public Result checkUserExists(Long userId) {
        return Result.error(ResultCode.SERVICE_UNAVAILABLE, "用户服务暂时不可用");
    }
} 